# 鼠标移动
import time

from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
driver.find_element_by_id("kw").send_keys("李易峰")
driver.find_element_by_id("su").click()
time.sleep(3)
d = driver.find_element_by_link_text("社会活动")
ActionChains(driver).move_to_element(d).perform()
time.sleep(4)
driver.quit()